package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;
import java.io.Serializable;

@Table(name = "goods_picturepath")
public class GoodsPicturepath implements Serializable {
    @Id
    @Column(name = "gp_id")
    private Long gpId;

    /**
     * 商品id
     */
    @Column(name = "gp_goodsId")
    private Long gpGoodsid;

    /**
     * 图片路径
     */
    @Column(name = "gp_picPath")
    private String gpPicpath;

    /**
     * @return gp_id
     */
    public Long getGpId() {
        return gpId;
    }

    /**
     * @param gpId
     */
    public void setGpId(Long gpId) {
        this.gpId = gpId;
    }

    /**
     * 获取商品id
     *
     * @return gp_goodsId - 商品id
     */
    public Long getGpGoodsid() {
        return gpGoodsid;
    }

    /**
     * 设置商品id
     *
     * @param gpGoodsid 商品id
     */
    public void setGpGoodsid(Long gpGoodsid) {
        this.gpGoodsid = gpGoodsid;
    }

    /**
     * 获取图片路径
     *
     * @return gp_picPath - 图片路径
     */
    public String getGpPicpath() {
        return gpPicpath;
    }

    /**
     * 设置图片路径
     *
     * @param gpPicpath 图片路径
     */
    public void setGpPicpath(String gpPicpath) {
        this.gpPicpath = gpPicpath;
    }

    @Override
    public String toString() {
        return "GoodsPicturepath{" +
                "gpId=" + gpId +
                ", gpGoodsid=" + gpGoodsid +
                ", gpPicpath='" + gpPicpath + '\'' +
                '}';
    }
}